// 智慧能源系统的 vue 组件
const Console = (resolve) => {
  import('@/deep-views/console/console').then((module) => {
    resolve(module)
  })
}

// // 总览
// const EnergyOverview = (resolve) => {
//   import('@/deep-views/console/routeView/energyOverview').then((module) => {
//     resolve(module)
//   })
// }
//
// // 碳排
// const CollectChart = (resolve) => {
//   import('@/deep-views/console/routeView/collectChart').then((module) => {
//     resolve(module)
//   })
// }
//
// // 成本
// const CostPools = (resolve) => {
//   import('@/deep-views/console/routeView/costPools').then((module) => {
//     resolve(module)
//   })
// }
//
// // 用水
// const AggregateWaters = (resolve) => {
//   import('@/deep-views/console/routeView/aggregateWaters').then((module) => {
//     resolve(module)
//   })
// }
//
// // 用电
// const AggregateElectricitys = (resolve) => {
//   import('@/deep-views/console/routeView/aggregateElectricitys').then((module) => {
//     resolve(module)
//   })
// }
//
// // 燃气
// const AggregateGass = (resolve) => {
//   import('@/deep-views/console/routeView/aggregateGass').then((module) => {
//     resolve(module)
//   })
// }
//
// // 冷量
// const AggregateCoolings = (resolve) => {
//   import('@/deep-views/console/routeView/aggregateCoolings').then((module) => {
//     resolve(module)
//   })
// }
//
// // 蒸汽
// const SummarySteams = (resolve) => {
//   import('@/deep-views/console/routeView/summarySteams').then((module) => {
//     resolve(module)
//   })
// }
//
// // 空气
// const AirCollectionss = (resolve) => {
//   import('@/deep-views/console/routeView/airCollectionss').then((module) => {
//     resolve(module)
//   })
// }
// 自定义
const UserDefined = (resolve) => {
  import('@/deep-views/console/userDefined').then((module) => {
    resolve(module)
  })
}
const UserDefinedNew = (resolve) => {
  import('@/deep-views/console/userDefinedNew').then((module) => {
    resolve(module)
  })
}
// 8月23日 新需求
// 总览
const EnergyOverview = (resolve) => {
  import('@/deep-views/console/childRoute/energyOverview').then((module) => {
    resolve(module)
  })
}

// 碳排
const CollectChart = (resolve) => {
  import('@/deep-views/console/childRoute/collectChart').then((module) => {
    resolve(module)
  })
}

// 成本
const CostPools = (resolve) => {
  import('@/deep-views/console/childRoute/costPools').then((module) => {
    resolve(module)
  })
}

// 用水
const AggregateWaters = (resolve) => {
  import('@/deep-views/console/childRoute/aggregateWaters').then((module) => {
    resolve(module)
  })
}

// 用电
const AggregateElectricitys = (resolve) => {
  import('@/deep-views/console/childRoute/aggregateElectricitys').then((module) => {
    resolve(module)
  })
}

// 燃气
const AggregateGass = (resolve) => {
  import('@/deep-views/console/childRoute/aggregateGass').then((module) => {
    resolve(module)
  })
}

// 冷量
const AggregateCoolings = (resolve) => {
  import('@/deep-views/console/childRoute/aggregateCoolings').then((module) => {
    resolve(module)
  })
}

// 蒸汽
const SummarySteams = (resolve) => {
  import('@/deep-views/console/childRoute/summarySteams').then((module) => {
    resolve(module)
  })
}

// 空气
const AirCollectionss = (resolve) => {
  import('@/deep-views/console/childRoute/airCollectionss').then((module) => {
    resolve(module)
  })
}

// 9月6日 新需求
// 二级页面 其他能源 折算成 (碳排 || 成本)
const CarbonCost = (resolve) => {
  import('@/deep-views/console/childRoute/carbonCost').then((module) => {
    resolve(module)
  })
}

// 二级页面 其他能源
const OtherEnergy = (resolve) => {
  import('@/deep-views/console/childRoute/otherEnergy').then((module) => {
    resolve(module)
  })
}

// 二级页面 车间级别的
const workShop = (resolve) => {
  import('@/deep-views/console/childRoute/workShop').then((module) => {
    resolve(module)
  })
}

export default [
  {
    path: '/console',
    // name: 'console',
    component: Console,
    // redirect: '/console/energyOverview',
    // children: [
    //   {
    //     path: '/console/energyOverview',
    //     name: 'energyOverview',
    //     component: EnergyOverview
    //   },
    //   {
    //     path: '/console/collectChart',
    //     name: 'collectChart',
    //     component: CollectChart
    //   },
    //   {
    //     path: '/console/costPools',
    //     name: 'costPools',
    //     component: CostPools
    //   },
    //   {
    //     path: '/console/aggregateWaters',
    //     name: 'aggregateWaters',
    //     component: AggregateWaters
    //   },
    //   {
    //     path: '/console/aggregateElectricitys',
    //     name: 'aggregateElectricitys',
    //     component: AggregateElectricitys
    //   },
    //   {
    //     path: '/console/aggregateGass',
    //     name: 'aggregateGass',
    //     component: AggregateGass
    //   },
    //   {
    //     path: '/console/aggregateCoolings',
    //     name: 'aggregateCoolings',
    //     component: AggregateCoolings
    //   },
    //   {
    //     path: '/console/summarySteams',
    //     name: 'summarySteams',
    //     component: SummarySteams
    //   },
    //   {
    //     path: '/console/airCollectionss',
    //     name: 'airCollectionss',
    //     component: AirCollectionss
    //   }
    // ]
    children: [
      {
        path: '/',
        name: 'energyOverview',
        component: EnergyOverview
      },
      {
        path: 'collectChart',
        name: 'collectChart',
        component: CollectChart
      },
      {
        path: 'costPools',
        name: 'costPools',
        component: CostPools
      },
      {
        path: 'aggregateWaters',
        name: 'aggregateWaters',
        component: AggregateWaters
      },
      {
        path: 'aggregateElectricitys',
        name: 'aggregateElectricitys',
        component: AggregateElectricitys
      },
      {
        path: 'aggregateGass',
        name: 'aggregateGass',
        component: AggregateGass
      },
      {
        path: 'aggregateCoolings',
        name: 'aggregateCoolings',
        component: AggregateCoolings
      },
      {
        path: 'summarySteams',
        name: 'summarySteams',
        component: SummarySteams
      },
      {
        path: 'airCollectionss',
        name: 'airCollectionss',
        component: AirCollectionss
      },
      {
        path: 'workShop',
        component: workShop
      },
      {
        path: 'carbonCost',
        component: CarbonCost
      },
      {
        path: 'otherEnergy',
        component: OtherEnergy
      }
    ]
  },
  {
    // path: '/userDefined',
    // name: 'userDefined',
    // component: UserDefined
    path: '/userDefined',
    name: 'userDefined',
    component: UserDefinedNew
  }
]
